/*
 * @authors :Bin Mei
 * @date    :2017-08-09
 * @description：票交汇App - 全局页面状态
 */

import {OPEN,CLOSE} from "../../actions/User/toggle";


let initStates = {
	dialog:false,
	scroll:true,
	retweet:false, //转接弹窗开关
	calcIncome:false,//投资详情计算器
	boundsModal:false	//限投提示模态框

};
function chatToggle(state = initStates,action){
	switch(action.type){

		case OPEN:
			return Object.assign({},state,{
				 [`${action.data}`]: true
			});

		case CLOSE:
			return Object.assign({},state,{
				 [`${action.data}`]: false
			});
		default:
			return state;
	};
};


export default chatToggle;



